package com.coolweather.android.util

import okhttp3.Callback
import okhttp3.OkHttpClient
import okhttp3.Request

/**
 * @author by liliang on 2020/6/4 12:32 PM
 */
object HttpUtil {

    fun sendOkHttpRequest(address: String, callBack: Callback) {
        OkHttpClient().apply {
            newCall(Request.Builder().apply { url(address) }.build()).enqueue(callBack)
        }
    }
}